//package com.bjsxt.controller;
//
//import com.bjsxt.model.R;
//import com.bjsxt.model.WebLog;
//import com.bjsxt.service.TestService;
//import com.fasterxml.jackson.databind.ObjectMapper;
//import io.swagger.annotations.*;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.data.redis.core.RedisTemplate;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.Date;
//
///**
// * @Description: 测试
// * @ClassName: TestController
// * @Author: chenyu
// * @Date: 2025/3/6 14:47
// */
//@RestController
//@Api(tags = "CoinCommon里面测试的接口")
//public class TestController {
//
//    @Autowired
//    private ObjectMapper objectMapper ;
//
//    @Autowired
//    private RedisTemplate<String,Object> redisTemplate ;
//
//    @Autowired
//    private TestService testService ;
//
//    @GetMapping("/common/test")
//    @ApiOperation(value = "测试方法", authorizations = {@Authorization("Authorization")})
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "param", value = "参数1", dataType = "String", paramType = "query", example = "paramValue"),
//            @ApiImplicitParam(name = "param1", value = "参数2", dataType = "String", paramType = "query", example = "paramValue")
//    })
//    public R<String> testMethod(String param, String param1) {
//
//        return R.ok("ok");
//    }
//
//    @GetMapping("/common/date")
//    @ApiOperation(value = "日志格式化测试", authorizations = {@Authorization("Authorization")})
//    public R<Date> testMethod() {
//        return R.ok(new Date());
//    }
//
//    @GetMapping("/redis/test")
//    @ApiOperation(value = "redis测试",authorizations = {@Authorization("Authorization")})
//    public R<String> testRedis(){
//        WebLog webLog = WebLog.builder()
//                .result("ok")
//                .method("com.bjsxt.domain.WebLog.testRedis")
//                .username("1110")
//                .build();
//        redisTemplate.opsForValue().set("com.bjsxt.domain.WebLog",webLog);
//        return R.ok("OK") ;
//    }
//
//    @GetMapping("/jetcache/test")
//    @ApiOperation(value = "jetcache缓存的测试",authorizations = {@Authorization("Authorization")})
//    public R<String> testJetCache(String username){
//        WebLog webLog = testService.get(username);
//        System.out.println(webLog);
//        return R.ok("OK") ; //
//    }
//}